<template>
  <div class="box">
    <span>小明每次花100元</span>
    <button @click="$emit('update:money',money-100)">爸爸的钱</button>
    <p>爸爸还剩:{{money}}元</p>
  </div>
</template>

<script type="text/ecmascript-6">
  export default {
    name: 'Child1',
    props:['money']
  }
</script>
